package com.onlyxiahui.extend.pdf.table;

import java.io.File;
import java.util.List;

import com.onlyxiahui.extend.pdf.table.bean.Row;
import com.onlyxiahui.extend.pdf.table.data.TextPage;

/**
 * Description <br>
 * Date 2020-02-04 14:49:54<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public class AnalysisHandler {

	AnalysisService analysisService = new AnalysisService();

	public List<Row> analysisRowList(File pdfFile, String password, DataConvert dataConvert) {
		return analysisRowList(ExtractionMethod.DECIDE, pdfFile, password, dataConvert);
	}

	public List<Row> analysisRowList(ExtractionMethod method, File pdfFile, String password, DataConvert dataConvert) {
		List<TextPage> list = analysisService.analysisTextPageList(method, pdfFile, password);
		return dataConvert.convert(list);
	}
}
